//
//  YKNormalDatePageViewController.m
//  YunKang
//
//  Created by leoking870 on 2017/11/2.
//  Copyright © 2017年 leoking870. All rights reserved.
//

#import "YKNormalDatePageViewController.h"
#import "YKClientDataViewController.h"
#import "TFGoodsViewController.h"
#import <TFSegmentConfigModel.h>
@interface YKNormalDatePageViewController ()

@end

@implementation YKNormalDatePageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.segmentView.backgroundColor = [UIColor tf_colorWithHexString:@"#d6f3ff"];
    self.navigationItem.title = @"统计管理";
}
- (NSArray *)titlesForViewControllers {
    return @[@"按客户",@"按品种"];
}

- (UIViewController *)viewControllerAtIndex:(NSUInteger)index {
    if (index == 0) {
        YKClientDataViewController *vc = [YKClientDataViewController new];
        return vc;
    }
    else {
        TFGoodsViewController *vc = [TFGoodsViewController new];
        return vc;
    }
}

- (TFSegmentConfigModel *)segmentConfigModel {
    TFSegmentConfigModel* model = [[TFSegmentConfigModel  alloc]init];
    model.textColor = [UIColor tf_colorWithHexString:@"#040404"];
    model.selectedTextColor = TFSTYLE(buttonEnableBackgroundColor);
    model.lineColor = TFSTYLE(buttonEnableBackgroundColor);
    model.lineInsets = UIEdgeInsetsMake(42, 0, 0, 0);
    model.fillSegmentWithItemsWhenLessCount = YES;
    return model;
}

@end
